'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:AttendanceAttendanceStatisticCtrl
 * @description
 * # AttendanceAttendanceStatisticCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
  .controller('AttendanceAttendanceStatisticCtrl', function ($location, DataService, openApi, localStorageService) {
    var vm = this;
    this.lists = [];
    this.goDetail = function (item) {
      localStorageService.set("attLog", item);
      $location.path("attendance/attendance_statisticDetail")
    };
    var init = function () {
      DataService.getData(openApi.attendanceLoglist).then(function (data) {
        vm.lists = data;
      })
    }
    init()
  });
